package com.online.dao;

import com.online.entity.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {

    Teacher selectByWorkNumber(String workNumber);

    Integer selectStatusByWorkNumber(String workNumber);

    Teacher selectByTeacherId(Integer teacherId);

    int updateTeacherInfo(@Param("teacherId") Integer teacherId,@Param("userName") String userName,@Param("password") String password,@Param("email") String email);

    int insertTeacherInfo(@Param("workNumber") String workNumber,@Param("password") String password,@Param("email") String email);

    List<Teacher> selectAllTeacher();

    int updateTeacherStatus(@Param("teacherId") Integer teacherId,@Param("status") Integer status);

    Teacher selectByEmail(String email);

    int updatePasswordByEmail(@Param("email") String email,@Param("password") String password);
}
